#!/bin/sh

cd $(dirname $0)

echo "updating files list..."
find * -type f \
        \( -regex '\(\(.*\/\)?CMakeLists.txt\|.*\/codegen.config\|.*\.\(h\|hpp\|c\|cpp\|json\|js\|html\|css\|conf\|load\|md\)\)' -o \
           -regex '.*/codegen/templates/.*' \) \
       -a \! -regex '\(.*/\)?\(\..*\|.*~\|tmp\)/.*' \
       -o -regex 'scripts/.*' | sort >ngrest-db.files
echo "done."
